package com.hubei.car.swaggerParam;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * 产品目录查询条件
 * @author huanghaisheng
 * @create 2019-12-7
 */
@ApiModel("产品目录分页查询条件")
@Data
@Accessors(chain = true)
public class MsProductTypeQueryParam {

    @ApiModelProperty(value = "当前页", example = "1", required = true)
    @NotNull(message = "当前页不能为空")
    private Long current;

    @ApiModelProperty(value = "当前页显示多少条数据", example = "10", required = true)
    @NotNull(message = "当前页显示多少条数据不能为空")
    private Long size;

    @ApiModelProperty(value = "id查询", example = "1")
    private Long id;

    @ApiModelProperty(value = "父id查询", example = "1")
    private Long pid;

    @ApiModelProperty(value = "产品目录名称")
    private String name;

    @ApiModelProperty(value = "是否置顶", example = "true")
    private Boolean istop;

    @ApiModelProperty(value = "是否推荐", example = "false")
    private Boolean isrecommend;

    @ApiModelProperty(value = "是否禁用", example = "false")
    private Boolean isstop;

    @ApiModelProperty(value="排序", example = "1")
    private Integer sort;

    @ApiModelProperty(value="首页拉取精品推荐", example = "true")
    private Boolean is_index_recommend;

}
